<?php
/**
 * Created by Moonpie Studio
 * User: Administrator
 * Date: 2017/9/26
 * Time: 14:50
 */

namespace Moonpie\Plugin\Enhancer\Service\View\Driver;


interface EngineInterface {
    /**
     * @param string|array $name 配置信息
     * @param mixed $value 配置的值
     * @return mixed
     */
    public function config($name, $value = null);

    /**
     * 获取模板信息
     * @param $template
     * @param $vars
     * @param $configs
     * @return string
     */
    public function fetch($template, $vars, $configs);

    /**
     * 输出模板信息
     * @param $template
     * @param $vars
     * @param $configs
     * @return void
     */
    public function display($template, $vars, $configs);
}